package com.frinder.web;

import com.alipay.sofa.runtime.api.annotation.SofaReference;
import com.frinder.base.SampleJvmService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Description //TODO
 * @Author frinder
 * @Date 2018/12/21 14:37
 * @Version 1.0
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @SofaReference
    private SampleJvmService sampleJvmService;

    @RequestMapping("/say")
    public String say() {
        return sampleJvmService.say();
    }

}
